Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OSX arm64 build target. #584

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Conversation

Faless
Copy link
Contributor

@Faless Faless commented Jul 7, 2021

New "macos_arch" to specify the desired arch, and "macos_sdk_path" to override the default SDK path.

New "macos_arch" to specify the desired arch, and "macos_sdk_path" to
override the default SDK path.
@Faless Faless added enhancement This is an enhancement on the current functionality platform:macos topic:buildsystem Related to the buildsystem or CI setup labels Jul 7, 2021
@Faless Faless merged commit e08ecdc into godotengine:master Jul 9, 2021
@Faless Faless deleted the build/osx_arm64 branch July 9, 2021 14:11
@DrMoriarty
Copy link

@Faless Hi! What about universal architecture? like this https://github.com/godotengine/godot-cpp/pull/529/files

@samsface
Copy link
Contributor

@Faless This is cool. How would I deploy an arm build though seeing gdnlib only offers x32 & x64 alts for Mac OSX?

@Calinou
Copy link
Member

Calinou commented Sep 12, 2021

@Faless This is cool. How would I deploy an arm build though seeing gdnlib only offers x32 & x64 alts for Mac OSX?

This is being tracked in godotengine/godot#48959. The workaround is to build an universal (fat) .dylib that includes both x86_64 and ARM64 libraries, then reference it in the OSX.64 library path.

@samsface
Copy link
Contributor

Ok cool this worked. I was able to create a fat binary pretty easy using the CMake build: https://github.com/samsface/godot-steam-api/blob/a62734b45f0630a005891df48b10815e170e90c8/lib/godot-cpp/conanfile.py

Though then found out steam's sdk won't ever link with arm so was all for nothing in the end 😅 .

@akien-mga akien-mga added this to the 3.4 milestone Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an enhancement on the current functionality platform:macos topic:buildsystem Related to the buildsystem or CI setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants